﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<script type="text/javascript">
    $(function () {
        initControl();
        gridList();
    });
    function initControl() {
        $('select').bindSelect();
    }
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            //url: "/SystemManage/User/GetGridJson",
            height: $(window).height() - 118,
            colModel: [
                { label: '序号', name: '', width: 80, align: 'center' },
                { label: '材料分类', name: '', width: 80, align: 'center' },
                { label: '材料牌号', name: '', width: 80, align: 'center' },
                { label: '材料规格(mm)', name: '', width: 80, align: 'center' },
                { label: '标准编号', name: '', width: 80, align: 'center' },
                { label: '特殊要求', name: '', width: 80, align: 'center' },
                { label: '单元(元)', name: '', width: 80, align: 'center' },
                { label: '操作人员', name: '', width: 80, align: 'center' },
                { label: '输入日期', name: '', width: 80, align: 'center' },
                { label: '输入时间', name: '', width: 80, align: 'center' },
                { label: '说明', name: '', width: 80, align: 'center' }
            ],
            pager: "#gridPager",
            sortname: 'F_DepartmentId asc,F_CreatorTime desc',
            viewrecords: true
        });
        $("#btn_search").click(function () {
            $gridList.jqGrid('setGridParam', {
                postData: { keyword: $("#txt_keyword").val() },
            }).trigger('reloadGrid');
        });
    }
</script>
<div id="layout" style="height: 100%; width: 100%;">
    <form id="form1">
        <div style="padding: 12px 0 5px 0; padding-left: 15px; border-bottom: 1px solid #ccc; " class="line-table input-width-140">
            <div class="btn-group" style="margin-top:-9px;">
                材料分类<br />
                <select id="" name="" class="form-control">
                    <option>&nbsp;</option>
                </select>
                &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                大类<br />
                <select id="" name="" class="form-control">
                    <option>&nbsp;</option>
                </select>
                &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                材料牌号<br /><input id="" name="" placeholder="" type="text" class="form-control" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                材料规格<br /><input id="" name="" placeholder="" type="text" class="form-control" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                标准编号<br /><input id="" name="" placeholder="" type="text" class="form-control" /> &nbsp;
            </div>
            <div class="btn-group" style="margin-top:-9px;">
                特殊要求<br /><input id="" name="" placeholder="" type="text" class="form-control" /> &nbsp;
            </div>
            <div class="btn-group" style="">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span> 检索</a>
            </div>
            <div class="btn-group" style="float:right;">
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-refresh"></span> 刷新</a>
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-plus"></span> 更新</a>
                <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-download"></span> 导出</a>
            </div>
        </div>
    </form>
    <div style="">
        <table id="gridList"></table>
        <div id="gridPager"></div>
    </div>
</div>

